package com.tian.source.mapper;

import com.tian.source.model.User;
import com.tian.core.base.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * @author tianhong yu
 * @date 2018年04月27日上午10:22:25
 */
@Mapper
@Component(value = "userMapper")
public interface UserMapper extends BaseMapper<User> {

    /**
     * 登录
     * @param user
     * @return
     */
    User login(@Param(value = "user") User user);

    void updatePwd(@Param(value = "userId") Integer userId,@Param(value = "password") String password);

}
